<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label for="c-starttime" class="control-label col-xs-12 col-sm-2">{:__('Starttime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-starttime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm" data-use-current="true" name="row[starttime]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-endtime" class="control-label col-xs-12 col-sm-2">{:__('Endtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-endtime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm" data-use-current="true" name="row[endtime]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-branchids" class="control-label col-xs-12 col-sm-2">{:__('Branchids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-branchids" data-rule="required" data-source="branch/selectpage" data-multiple="false" class="form-control" name="row[branchids]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-classid" class="control-label col-xs-12 col-sm-2">{:__('Classid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-classid" data-rule="required" data-source="eduadmin/classes/selectpage"  class="form-control" name="row[classid]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-teacherid" class="control-label col-xs-12 col-sm-2">{:__('Teacherid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-teacherid" data-rule="required" data-source="auth/admin/selectpage" data-field='nickname'   class="form-control selectpage" name="row[teacherid]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-classroomid" class="control-label col-xs-12 col-sm-2">{:__('Classroomid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-classroomid" data-rule="required" data-source="baseadmin/classroom/selectpage"  class="form-control" name="row[classroomid]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-status" class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="status 0"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
